<?php
include("../lib/template.inc");
include("../lib/lib_online_payment.php");
include("../nav_data.php");
$m=0;

list($receiver_epsn,$receiver_user_ID)=explode(".",$_GET["receiver"]);
$receiver=new dps_user($receiver_epsn,$receiver_user_ID);
list($payer_epsn,$payer_user_ID)=explode(".",$_GET["payer"]);
$payer=new dps_user($payer_epsn,$payer_user_ID);
$receiver_realname=$receiver->smart_get(true,23,"姓名");
$payer_realname=$payer->smart_get(true,23,"姓名");
$amount=$_GET["amount"];
$memo=$_GET["memo"];

$doc[$m]["processor"]="pay_result.php";
$doc[$m]["submit_name"]="付款";
$doc[$m]["title"]="Caco网上付款";
$doc[$m]["content"]='
<input type="hidden" name="receiver_epsn" value="'.$receiver_epsn.'"/>
<input type="hidden" name="receiver_user_ID" value="'.$receiver_user_ID.'"/>
<input type="hidden" name="payer_epsn" value="'.$payer_epsn.'"/>
<input type="hidden" name="payer_user_ID" value="'.$payer_user_ID.'"/>
<input type="hidden" name="payer_epsn" value="'.$payer_epsn.'"/>
付款者：'.$payer_realname[0]["memo"].'<br />
收款者：'.$receiver_realname[0]["memo"].'<br />
支付金额：<input type="text" name="amount" value="'.$amount.'"/><br />
支付说明：<input type="text" name="memo" value="'.$memo.'"/>
';
$doc[$m]["wid"]='100%';
$m++;

include("render.php");
render("网上付款",$nav_title,$nav_link,$doc);
?>